Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coverity scan issues in Node class of CPU plugin: 1563144, 1563146 #28268

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aobolensk
Copy link
Contributor

Details:

  • Fix performance inefficiencies coverity remarks in Node class implementation of CPU plugin: 1563144, 1563146

Tickets:

@aobolensk aobolensk requested review from a team as code owners January 3, 2025 15:21
@github-actions github-actions bot added the category: CPU OpenVINO CPU plugin label Jan 3, 2025
@aobolensk aobolensk force-pushed the cov-1563144-1563146 branch from 0ecdfde to 8c056d5 Compare January 7, 2025 09:17
@@ -383,7 +383,7 @@ void Node::selectPreferPrimitiveDescriptorWithShape(const std::vector<impl_desc_

const bool isCompatible = curDesc->isCompatible(*parentDesc);
if (!isCompatible) {
if (!isReorderRequired(parentDesc, curDesc)) {
if (!isReorderRequired(std::move(parentDesc), curDesc)) {
Copy link
Contributor

@EgorDuplensky EgorDuplensky Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we instead change the semantics of isReorderRequired to:

bool Node::isReorderRequired(const MemoryDescCPtr& desc1, const MemoryDescCPtr& desc2) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@aobolensk aobolensk force-pushed the cov-1563144-1563146 branch from 8c056d5 to aa3c8b8 Compare January 7, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: CPU OpenVINO CPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants